import router from "@/router";
import type { RouteLocationNormalized, NavigationGuardNext } from "vue-router";
router.beforeEach(
  (
    _from: RouteLocationNormalized,
    to: RouteLocationNormalized,
    next: NavigationGuardNext
  ) => {
    document.title = (to.meta.title as string) || "lx博客";
    next();
  }
);
